<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\BasMember */

$this->title = '用户信息';
?>
<div class="bas-member-view">

    <h5><?= Html::encode($this->title) ?></h5>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'avatar' => [
                'attribute' => 'avatar',
                'format' => [
                    'image',
                    [
                        'width' => 'auto%',
                        'height' => '100px',
                        'style' => 'display: block; margin: 0 auto;',
                    ]
                ],
                'value' => function ($model) {
                    return $model->avatar;
                }
            ],
            'name',
            'phone',
            'user_name',
            'id_number',
            'created_at',
            'login_ip',


        ],
    ]) ?>

</div>
